﻿@model EnrollModel
@{
    ViewBag.Title = "南山文化馆";
}

<h2> @Model.TrainningName </h2>
<h3>报名成功</h3>
<dl>
    <dt>姓名</dt>
    <dd>@Model.Name</dd>
    <dt>年龄</dt>
    <dd>@Model.Age 岁</dd>
    <dt>性别</dt>
    <dd>@Html.Raw(Model.Gender == 1 ? "男" : Model.Gender == 2 ? "女" : "未知")</dd>
    <dt>身份证</dt>
    <dd>@Model.IdCard.Substring(0, 14)****</dd>
    <dt>联系电话</dt>
    <dd>@Model.Phone.Substring(0, 3)****@Model.Phone.Substring(7, 4)</dd>
</dl>
<article style="padding: 10px">
    @Html.Raw(ViewBag.Info??string.Empty)
</article>
<p class="footer"><a href="@Url.Action("Index")">培训列表</a></p>

@section css{
    <style type="text/css">
        body {
            background: #57A3CB;
            color: white;
        }
        h2, h3 { text-align: center }
        h2 { margin: 30px 0 }
        h3 { color: green }
        dl { padding: 0 15px }
        dd {font-size: 18px;margin: 5px 0 15px 0}
        .footer {
            margin-top: 50px;
            text-align: center
        }
        .footer a {
            padding: 8px 15px;
            border-radius: 5px;
            border: 1px solid white;
            width: 70%;
            display: inline-block;
            color: white;
            font-size: 15px;
        }
    </style>
}